/**
 * 库存供应模块 mock数据
 */

module.exports = [
  // 船舶物料-----------开始
  {
    url: '/port/boatMaterial/list',
    type: 'get',
    response: (_) => {
      return {
        success: true,
        message: null,
        code: 200,
        timestamp: 1717468676986,
        result: {
          records: [
            {
              id: '1760134491761631234',
              createBy: '1441625807214358529',
              createTime: '2024-02-21 10:48:59',
              updateBy: '1441625807214358529',
              updateTime: '2024-02-22 15:06:49',
              delFlag: 0,
              name: '粮食',
              spec: '吨',
              stock: 10,
              companyId: '1441625806740402177',
              boatName: '港际航海',
              boatId: '1752714818371792898',
              nowStock: 9
            }
          ],
          total: 1,
          size: 10,
          current: 1,
          orders: [],
          optimizeCountSql: true,
          searchCount: true,
          countId: null,
          maxLimit: null,
          pages: 1
        },
        param: null
      }
    }
  },
  {
    url: '/port/boatMaterial/add',
    type: 'post',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/boatMaterial/edit',
    type: 'put',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/boatMaterial/delete',
    type: 'delete',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/boatMaterial/queryByName',
    type: 'get',
    response: (_) => {
      return {
        success: true,
        message: null,
        code: 200,
        timestamp: 1717468676986,
        result: [
          {
            id: '1233221',
            createTime: '2024-02-22 15:06:04',
            applyer: '13355608999',
            applyerName: '管理员',
            applyNum: 1,
            materialName: '粮食'
          }
        ],
        param: null
      }
    }
  },
  // 船舶物料-----------结束

  // 船舶备件-----------开始
  {
    url: '/port/boatSpare/list',
    type: 'get',
    response: (_) => {
      return {
        success: true,
        message: null,
        code: 200,
        timestamp: 1717468676986,
        result: {
          records: [
            {
              id: '1760174938705977345',
              createBy: '1441625807214358529',
              createTime: '2024-02-21 13:29:42',
              updateBy: '1441625807214358529',
              updateTime: '2024-02-22 15:45:24',
              delFlag: 0,
              name: '备件1号',
              no: 'NO001',
              stock: 300,
              companyId: '1441625806740402177',
              addr: '江苏扬州',
              remark: '1',
              nowStock: 298
            }
          ],
          total: 1,
          size: 10,
          current: 1,
          orders: [],
          optimizeCountSql: true,
          searchCount: true,
          countId: null,
          maxLimit: null,
          pages: 1
        },
        param: null
      }
    }
  },
  {
    url: '/port/boatSpare/add',
    type: 'post',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/boatSpare/edit',
    type: 'put',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/boatSpare/delete',
    type: 'delete',
    response: (_) => {
      return {
        success: true,
        message: '成功',
        code: 200,
        timestamp: 1717483146384,
        result: null,
        param: null
      }
    }
  },
  {
    url: '/port/boatSpare/queryByName',
    type: 'get',
    response: (_) => {
      return {
        success: true,
        message: null,
        code: 200,
        timestamp: 1717468676986,
        result: [
          {
            id: '1123321',
            createTime: '2024-02-22 15:05:59',
            applyer: '13355608999',
            applyerName: '管理员',
            applyNum: 2,
            spareName: '备件1号'
          }
        ],
        param: null
      }
    }
  }
  // 船舶备件-----------结束
]
